#!/usr/bin/env bash

PROGRAM=mixedprocess
export LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH

if [[ ! -f "bin/$PROGRAM" ]]; then
    ./build.sh
fi

[[ -f valgrind.log ]] && rm valgrind.log
#G_SLICE=always-malloc G_DEBUG=gc-friendly /usr/bin/valgrind --leak-check=full --tool=memcheck --num-callers=40 --log-file=valgrind.log bin/$PROGRAM -c ./conf/app.json
bin/$PROGRAM -c ./conf/app.json
